package Bean;

import com.alibaba.fastjson.JSONObject;

import java.text.SimpleDateFormat;
import java.util.Date;

public class BeanCourse {
    int course_id;
    int class_id;
    Date start_time;
    Date finish_time;
    boolean course_state;
    int weekday;
    int span;
    String course_evaluation;
    BeanClass aClass;

    public int getSpan() {
        return span;
    }

    public void setSpan(int span) {
        this.span = span;
    }

    public int getClass_id() {
        return class_id;
    }

    public void setClass_id(int class_id) {
        this.class_id = class_id;
    }

    public int getWeekday() {
        return weekday;
    }

    public void setWeekday(int weekday) {
        this.weekday = weekday;
    }

    public int getCourse_id() {
        return course_id;
    }

    public void setCourse_id(int course_id) {
        this.course_id = course_id;
    }

    public BeanClass getaClass() {
        return aClass;
    }

    public void setaClass(BeanClass aClass) {
        this.aClass = aClass;
    }

    public Date getStart_time() {
        return start_time;
    }

    public void setStart_time(Date start_time) {
        this.start_time = start_time;
    }

    public Date getFinish_time() {
        return finish_time;
    }

    public void setFinish_time(Date finish_time) {
        this.finish_time = finish_time;
    }

    public boolean isCourse_state() {
        return course_state;
    }

    public void setCourse_state(boolean course_state) {
        this.course_state = course_state;
    }

    public String getCourse_evaluation() {
        return course_evaluation;
    }

    public void setCourse_evaluation(String course_evaluation) {
        this.course_evaluation = course_evaluation;
    }


    public JSONObject toJson() {
        JSONObject j=new JSONObject();
        j.put("course_id", course_id);
        j.put("aClass", aClass);
        j.put("course_state", course_state);
        j.put("course_evaluation", course_evaluation);
        j.put("weekday", weekday);
        j.put("span", span);
        return j;
    }
}
